// @import './ui-variables.scss';
@import './ui-variables.scss';
/* bi-ui-style */

// $appmainWidth
/* 
 *Font  
 *默认为font-size: 14px;line-height: 20px;
*/
body {
  font-size: 14px;
  line-height: 20px;
  color: #333;
}
#app {
  height: 100%;
  background-color: #e5e5e5;

  .navbar {
    height: $navbarHeight;

    .navbar-box {
      height: $navbarHeight;
      line-height: $navbarHeight;
    }
  }
  .app-main {
    min-height: calc(100vh - #{$navbarHeight});
  }
}

.app-main {
  .text {
    &-12 {
      font-size: 12px;
      line-height: 18px;
    }
    &-14 {
      font-size: 14px;
      line-height: 20px;
    }
    &-16 {
      font-size: 16px;
      line-height: 22px;
    }
    &-24 {
      font-size: 16px;
      line-height: 34px;
    }
  }

  .container {
    padding: 20px;

    & + .container {
      margin-top: 10px;
    }
  }
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  & + * {
    margin-top: 20px;
  }

  .search-item {
    min-width: 330px !important;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
    display: flex;
    flex: 0 0 auto;

    .item-label,
    .select-label {
      flex-wrap: 0;
      flex-shrink: 0;
      padding-right: 10px;
      margin-bottom: 0;
      margin-right: 0;
      margin-left: 0;
      margin-top: 0;
      text-align: right;
      line-height: 16px;
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      max-height: 32px;
      overflow: hidden;
    }
    .item-label {
      width: 80px;
    }
    .select-label {
      width: 100px;
      margin-right: -1px;
      text-align: right;
      padding-right: 0;

      .is-focus .el-input__inner {
        z-index: 1;
      }
      .el-input__inner {
        position: relative;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
        &:focus {
          z-index: 1;
        }
      }
    }

    .item-content,
    .select-content {
      flex-grow: 1;
      & > * {
        width: 100%;
      }
    }
    .select-content {
      height: 32px;
      .input-number-range {
        position: relative;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        &.is-focus {
          z-index: 1;
        }
      }
      &:not(.el-select) {
        .is-focus .el-input__inner {
          z-index: 1;
        }
        .el-input__inner {
          position: relative;
          border-top-left-radius: 0px;
          border-bottom-left-radius: 0px;
          transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
          &:focus {
            z-index: 1;
          }
        }
      }
      &.el-select {
        .el-input .el-input__inner {
          border-top-left-radius: 0px;
          border-bottom-left-radius: 0px;
        }
      }
    }
  }
}

.hideSidebar {
  .search-form {
    @media screen and (max-width: 1103px) {
      .search-item {
        width: 50%;
        // &:nth-last-child(3) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1104px) {
      .search-item {
        width: 33.3%;
        // &:nth-last-child(4) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1434px) {
      .search-item {
        width: 25%;
        // &:nth-last-child(5) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1764px) {
      .search-item {
        width: 20%;
        // &:nth-last-child(6) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
  }
}
.openSidebar {
  .search-form {
    @media screen and (max-width: 910px) {
      .search-item {
        width: 50%;
        // &:nth-last-child(3) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1240px) {
      .search-item {
        width: 33.3%;
        // &:nth-last-child(4) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1570px) {
      .search-item {
        width: 25%;
        // &:nth-last-child(5) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
    @media screen and (min-width: 1900px) {
      .search-item {
        width: 20%;
        // &:nth-last-child(6) ~ .search-item {
        //   padding-bottom: 0;
        // }
      }
    }
  }
}
/* element-ui */
.el-select,
.el-cascader {
  .el-input__inner {
    padding-right: 20px;
  }
  .el-input__suffix {
    z-index: 1;
    width: 20px;
  }

  .el-cascader__tags {
    width: 210px;
    flex-wrap: nowrap;
  }
  .el-cascader__search-input {
    min-width: 50px;
    margin-left: 10px;
  }
}
.el-date-editor {
  .el-range__close-icon {
    width: 15px;
  }
}
.el-button + .el-button {
  margin-left: 10px;
}

// .el-dialog__wrapper {
//   display: flex;
//   align-items: center;
//   .el-dialog {
//     min-width: 480px;
//     margin-top: 50px;
//     margin-bottom: 50px;
//     max-height: calc(100vh - 100px);

//     .el-dialog__header {
//       padding: 16px 20px;
//       line-height: 20px;
//       font-size: 16px;
//       color: rgba(0, 0, 0, 0.85);
//       border-bottom: 1px solid rgba(0, 0, 0, 0.06);
//     }
//   }
// }
#app .sidebar-container .nest-menu .el-submenu > .el-submenu__title,
#app .sidebar-container .el-submenu .el-menu-item {
  padding-left: 60px !important;
  color: #606266;
}
#app .sidebar-container .el-menu .el-menu-item .svg-icon + span {
  font-weight: 500;
  font-size: 16px;
  // color: #606266;
}
#app .sidebar-container .el-menu .el-submenu__title .svg-icon + span {
  font-size: 16px;
  font-weight: 500;
}
#app .sidebar-container .svg-icon {
  color: #8893aa;
}

#app .is-active .svg-icon {
  color: #06C261;
}
#app .el-table thead th.el-table__cell .cell {
  display: inline-block;
}
.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  background-color: #fff9f5;
}

